/** 统一管理请求方法的文件 **/

import { get, post } from '@/api/require'
import api from '@/api/interface'

const http = {
  homeMenu: () => get(api.home),
  queryPostById: (id) => get(`${api.queryPostById}${id}`),
  queryPostByPage: (cur, pageSize) => get(api.queryPostByPage, {'current': cur, 'pageSize': pageSize}),
}
export default http
